.class public Lcom/example/m6wmr/ShopdetActivity;
.super Landroid/app/Activity;
.source "ShopdetActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/ShopdetActivity$Waimairenjsobj;
    }
.end annotation


# static fields
.field public static shopdet:Lcom/example/m6wmr/ShopdetActivity;


# instance fields
.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private goint:I

.field private goodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopname:Ljava/lang/String;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 51
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 52
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->areaid:Ljava/lang/String;

    .line 53
    iput-object v1, p0, Lcom/example/m6wmr/ShopdetActivity;->m:Lmyapp/MyApp;

    .line 56
    iput-object v1, p0, Lcom/example/m6wmr/ShopdetActivity;->h:Landroid/os/Handler;

    .line 58
    iput-object v1, p0, Lcom/example/m6wmr/ShopdetActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 59
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->mHandler:Landroid/os/Handler;

    .line 60
    iput-object v1, p0, Lcom/example/m6wmr/ShopdetActivity;->pd:Landroid/app/ProgressDialog;

    .line 61
    iput-boolean v2, p0, Lcom/example/m6wmr/ShopdetActivity;->loaddata:Z

    .line 62
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->shopid:Ljava/lang/String;

    .line 63
    iput-object v1, p0, Lcom/example/m6wmr/ShopdetActivity;->goodsstr:Ljava/lang/String;

    .line 66
    iput-object v1, p0, Lcom/example/m6wmr/ShopdetActivity;->cursor:Landroid/database/Cursor;

    .line 69
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->shopname:Ljava/lang/String;

    .line 70
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->shopstr:Ljava/lang/String;

    .line 71
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->pingstr:Ljava/lang/String;

    .line 72
    iput v2, p0, Lcom/example/m6wmr/ShopdetActivity;->goint:I

    .line 51
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ShopdetActivity;Z)V
    .locals 0

    .prologue
    .line 61
    iput-boolean p1, p0, Lcom/example/m6wmr/ShopdetActivity;->loaddata:Z

    return-void
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ShopdetActivity;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 57
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/ShopdetActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 70
    iput-object p1, p0, Lcom/example/m6wmr/ShopdetActivity;->shopstr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$11(Lcom/example/m6wmr/ShopdetActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 71
    iput-object p1, p0, Lcom/example/m6wmr/ShopdetActivity;->pingstr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/ShopdetActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->goodsstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/ShopdetActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 70
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->shopstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/ShopdetActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->pingstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/ShopdetActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/ShopdetActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 69
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->shopname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/ShopdetActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/ShopdetActivity;)Z
    .locals 1

    .prologue
    .line 61
    iget-boolean v0, p0, Lcom/example/m6wmr/ShopdetActivity;->loaddata:Z

    return v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/ShopdetActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 67
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method


# virtual methods
.method public Inishop()V
    .locals 0

    .prologue
    .line 288
    return-void
.end method

.method public bindbtn()V
    .locals 3

    .prologue
    .line 248
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/ShopdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 249
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/ShopdetActivity$3;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/ShopdetActivity$3;-><init>(Lcom/example/m6wmr/ShopdetActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 256
    const v2, 0x7f0c0141

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/ShopdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 257
    .local v1, "collectbtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/ShopdetActivity$4;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/ShopdetActivity$4;-><init>(Lcom/example/m6wmr/ShopdetActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 283
    return-void
.end method

.method public getDataCount()J
    .locals 3

    .prologue
    .line 242
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 243
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "select count(*) from collect where ShopId="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/example/m6wmr/ShopdetActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 242
    invoke-virtual {v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->cursor:Landroid/database/Cursor;

    .line 244
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 245
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->cursor:Landroid/database/Cursor;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    return-wide v0
.end method

.method public getshopinfoSource()Z
    .locals 1

    .prologue
    .line 328
    new-instance v0, Lcom/example/m6wmr/ShopdetActivity$6;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/ShopdetActivity$6;-><init>(Lcom/example/m6wmr/ShopdetActivity;)V

    .line 375
    invoke-virtual {v0}, Lcom/example/m6wmr/ShopdetActivity$6;->start()V

    .line 376
    const/4 v0, 0x0

    return v0
.end method

.method public getshoppingSource()Z
    .locals 1

    .prologue
    .line 380
    new-instance v0, Lcom/example/m6wmr/ShopdetActivity$7;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/ShopdetActivity$7;-><init>(Lcom/example/m6wmr/ShopdetActivity;)V

    .line 427
    invoke-virtual {v0}, Lcom/example/m6wmr/ShopdetActivity$7;->start()V

    .line 428
    const/4 v0, 0x0

    return v0
.end method

.method public loaddatatojs()Z
    .locals 1

    .prologue
    .line 292
    new-instance v0, Lcom/example/m6wmr/ShopdetActivity$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/ShopdetActivity$5;-><init>(Lcom/example/m6wmr/ShopdetActivity;)V

    .line 321
    invoke-virtual {v0}, Lcom/example/m6wmr/ShopdetActivity$5;->start()V

    .line 322
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 12
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const v11, 0x7f0c0141

    .line 76
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 78
    const v9, 0x7f030039

    invoke-virtual {p0, v9}, Lcom/example/m6wmr/ShopdetActivity;->setContentView(I)V

    .line 80
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopdetActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v9

    check-cast v9, Lmyapp/MyApp;

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->m:Lmyapp/MyApp;

    .line 81
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 82
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 83
    iput-object p0, p0, Lcom/example/m6wmr/ShopdetActivity;->mcontext:Landroid/content/Context;

    .line 84
    sput-object p0, Lcom/example/m6wmr/ShopdetActivity;->shopdet:Lcom/example/m6wmr/ShopdetActivity;

    .line 85
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v10, "loadover"

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 86
    new-instance v9, Ljava/util/ArrayList;

    invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->goodsls:Ljava/util/List;

    .line 88
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopdetActivity;->getIntent()Landroid/content/Intent;

    move-result-object v5

    .line 89
    .local v5, "intent":Landroid/content/Intent;
    const-string v9, "shopid"

    invoke-virtual {v5, v9}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->shopid:Ljava/lang/String;

    .line 90
    const-string v9, "shopname"

    invoke-virtual {v5, v9}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->shopname:Ljava/lang/String;

    .line 91
    const v9, 0x7f0c009b

    invoke-virtual {p0, v9}, Lcom/example/m6wmr/ShopdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    .line 92
    .local v7, "shopnameTV":Landroid/widget/TextView;
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->shopname:Ljava/lang/String;

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 93
    const-string v9, "ShopdetACtivity"

    const-string v10, "\u52a0\u8f7d\u6570\u636e"

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 94
    new-instance v9, Ldbclass/DBOpenHelper;

    iget-object v10, p0, Lcom/example/m6wmr/ShopdetActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v9, v10}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->helper:Ldbclass/DBOpenHelper;

    .line 95
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v9}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 96
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v9}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v9

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 97
    new-instance v9, Landroid/content/ContentValues;

    invoke-direct {v9}, Landroid/content/ContentValues;-><init>()V

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->cv:Landroid/content/ContentValues;

    .line 98
    new-instance v9, Lcom/example/m6wmr/ShopdetActivity$1;

    invoke-direct {v9, p0}, Lcom/example/m6wmr/ShopdetActivity$1;-><init>(Lcom/example/m6wmr/ShopdetActivity;)V

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->h:Landroid/os/Handler;

    .line 169
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopdetActivity;->getDataCount()J

    move-result-wide v2

    .line 170
    .local v2, "checkMycollect":J
    const-wide/16 v9, 0x0

    cmp-long v9, v2, v9

    if-lez v9, :cond_1

    .line 171
    invoke-virtual {p0, v11}, Lcom/example/m6wmr/ShopdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 172
    .local v4, "collectbtn":Landroid/widget/ImageView;
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopdetActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    .line 173
    .local v6, "resources":Landroid/content/res/Resources;
    const v9, 0x7f020040

    invoke-virtual {v6, v9}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 174
    .local v1, "btnDrawable":Landroid/graphics/drawable/Drawable;
    invoke-virtual {v4, v1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 183
    :goto_0
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopdetActivity;->bindbtn()V

    .line 191
    const v9, 0x7f0c001c

    invoke-virtual {p0, v9}, Lcom/example/m6wmr/ShopdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/webkit/WebView;

    iput-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    .line 192
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v9}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v8

    .line 193
    .local v8, "webSettings":Landroid/webkit/WebSettings;
    const/4 v9, 0x1

    invoke-virtual {v8, v9}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 196
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v10, Lcom/example/m6wmr/ShopdetActivity$Waimairenjsobj;

    const/4 v11, 0x0

    invoke-direct {v10, p0, v11}, Lcom/example/m6wmr/ShopdetActivity$Waimairenjsobj;-><init>(Lcom/example/m6wmr/ShopdetActivity;Lcom/example/m6wmr/ShopdetActivity$Waimairenjsobj;)V

    const-string v11, "waimai"

    invoke-virtual {v9, v10, v11}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 197
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    const/16 v10, 0x8

    invoke-virtual {v9, v10}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 199
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    const-string v10, "file:///android_asset/shopdetail.html"

    invoke-virtual {v9, v10}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 200
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v9, :cond_0

    .line 202
    iget-object v9, p0, Lcom/example/m6wmr/ShopdetActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v10, Lcom/example/m6wmr/ShopdetActivity$2;

    invoke-direct {v10, p0}, Lcom/example/m6wmr/ShopdetActivity$2;-><init>(Lcom/example/m6wmr/ShopdetActivity;)V

    invoke-virtual {v9, v10}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 221
    :cond_0
    return-void

    .line 176
    .end local v1    # "btnDrawable":Landroid/graphics/drawable/Drawable;
    .end local v4    # "collectbtn":Landroid/widget/ImageView;
    .end local v6    # "resources":Landroid/content/res/Resources;
    .end local v8    # "webSettings":Landroid/webkit/WebSettings;
    :cond_1
    invoke-virtual {p0, v11}, Lcom/example/m6wmr/ShopdetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 177
    .restart local v4    # "collectbtn":Landroid/widget/ImageView;
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopdetActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    .line 178
    .restart local v6    # "resources":Landroid/content/res/Resources;
    const v9, 0x7f02003f

    invoke-virtual {v6, v9}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 179
    .restart local v1    # "btnDrawable":Landroid/graphics/drawable/Drawable;
    invoke-virtual {v4, v1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 451
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 452
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 453
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 455
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 456
    iget-object v0, p0, Lcom/example/m6wmr/ShopdetActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 458
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 440
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 442
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopdetActivity;->finish()V

    .line 446
    :cond_0
    return v1
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 434
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 435
    return-void
.end method
